package cn.life.money.api;

import cn.life.common.pojo.CommonResult;
import cn.life.money.constant.ApiConstants;
import cn.life.money.dto.DemoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ApiConstants.NAME)
public interface DemoApi {

    String PREFIX = ApiConstants.PREFIX + "/demo";

    /**
     * 示例方法
     */
    @PostMapping(PREFIX + "/demo")
    CommonResult<String> demo(@Validated @RequestBody DemoDTO dto);
}
